#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <set>
#include <vector>
using namespace std;

int main() {
    int n;
    cin >> n;
    vector<int> s;

    if (n % 2 != 0)
    {
        s.push_back(1);
        for (int i = 2; i <= n - 1; i += 2)
        {
            s.push_back(i + 1);
            s.push_back(i);
        }

    }
    else {
        s.push_back(1);
        for (int i = 2; i <= n - 2; i += 2)
        {
            s.push_back(i + 1);
            s.push_back(i);
        }
        s.push_back(n);
    }
    for (auto& e : s)
    {
        cout << e << " ";
    }



}   
#include <iostream>
using namespace std;

int main() {
    long  int a; long int b; long int h, k;
    cin >> a >> h >> b >> k;
    long int sum = 0;
    while (h > 0 && k > 0)
    {
        sum = sum + a + b;
        h -= b;
        k -= a;
    }
    if (h > 0 && !(k > 0))
    {
        sum += 10 * a; cout << sum;
    }
    else if (k > 0 && !(h > 0))
    {
        sum += 10 * b; cout << sum;
    }
    else {
        cout << sum;
    }

}


